package dto

import "gitee.com/zoneaurora/shop/internal/model"

type UserDto struct {
  ID uint
  Username string
  Telephone string
  Address string
  Money float64
}

func ToUserDto(user model.User) UserDto {
  return UserDto{
    ID: user.ID,
    Username: user.Username,
    Telephone: user.Telephone,
    Address: user.Address,
    Money: user.Money,
  }
}
